private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
textBox1->Text = "";
int i,j,result;
for(i=1;i<10;i++)
{for(j=1;j<=i;j++)
{ result=ij;
textBox1->Text += i + "" + j + "=" + result + " ";
}
textBox1->Text += "\r\n";/每一行後換行/
}
}
本人王坤生用的Visual Studio 2010,這是一個WINDOWS窗體應用程序中,button1單擊事件代碼。
問:button1的其它事件(例如鼠標在上面移動事件)怎麽編寫?
問:怎樣在一個listbox中輸出上面的九九乘法表?
謝謝!